package com.example.forum.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/*
    登录凭证
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class LoginTicket {
    private Integer id;
    private Integer userId;
    private String ticket;  //随机生成的凭证
    private Integer status; //0有效 1无效
    private Date expired;   //过期时间
}
